/**
 * 
 */
package geometry;

/**
 * @author pratikbhavsar
 * 
 */
public class Segment {

	Point a, b;
	
	public Segment(Point a, Point b, String name) {
		this.a = a;
		this.b = b;
		this.name = name;
	}
	
	public Point getA() {
		return a;
	}

	public void setA(Point a) {
		this.a = a;
	}

	public Point getB() {
		return b;
	}

	public void setB(Point b) {
		this.b = b;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	String name;

	@Override
	public String toString() {
		return "Segment from " + a.toString() + " to " + b.toString();
	}
}
